<?php
namespace app\command;
use app\common\controller\EmailWork;
use app\common\controller\SmsWork;
use Process\Share;
use Process\FShare;
use Process\Process;
use think\Config;
use think\console\Command;
use think\console\Input;
use think\console\Input\Option;
use think\console\Output;
use think\Db;
use Process\RedisClient;
use Sms\Sms;
pcntl_async_signals(true);
class Test extends Command
{

    protected function configure()
    {
        $this->setName('test')
            ->setDescription('测试cli');
    }

    /**
     * @param Input $input
     * @param Output $output
     * @return int|null|void
     * @throws \Exception
     */
    protected function execute(Input $input, Output $output)
    {
        #$obj = new EmailWork();
        $obj = new SmsWork();
        $obj->confReady();
        #$obj->queueWork();
        #$obj->dbSave();
        die();
        $obj ->queueWork();
        die();
    }
}